package uestc.lj.gulishop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import uestc.lj.common.utils.PageUtils;
import uestc.lj.gulishop.product.entity.SpuInfoEntity;
import uestc.lj.gulishop.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author crazlee
 * @email peterlee0@163.com
 * @date 2021-05-21 16:56:25
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);


    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId);

    /**
     * 根据skuId查询对应的spu信息
     * @param skuId 商品项id
     * @return spuinfo
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

